package com.demo.autotest.database.mapper;
import com.demo.autotest.database.domain.Function;
import com.demo.autotest.dto.FunctionDTO;
import com.demo.autotest.request.QueryRequest;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper   // 定义Dao层
public interface FunctionMapper {

     void saveFunction(Function function);

     void delete(String id);

     List<FunctionDTO> getFunctionList(QueryRequest request);

     Function getFunctionDetail(String id);

     Function getFunctionByName(String projectId, String name);
}
